﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Serialization;

namespace UpdaterForm
{
    [Serializable]
    public class Data
    {
        [XmlArrayItem(typeof (AppData))]
        public List< AppData> AppData { get; set; }


        public AppData GetByName(String name)
        {
            try
            {
                return AppData.FirstOrDefault(x => x.AppName.Equals(name));
            }
            catch (Exception)
            {
                return null;
            }
        }

    }
}
